package com.usv.reader.impl;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

import com.usv.reader.ImageReader;


public class ImageFileReader implements ImageReader {

	File file;

	public ImageFileReader(File file) {
		this.file = file;
	}

	public BufferedImage readImage() {
		
		BufferedImage bufImg = null;
		
		try {
			bufImg = ImageIO.read(file);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return bufImg;
	}
}
